# @Author   : 懒羊羊
# @File     : look.py
# @Time     : 2024/12/4 20:11
import time

from selenium.webdriver.chrome import webdriver
from selenium.webdriver.common.by import By
from search import search


def look(wd):
    # wd.find_element(By.CSS_SELECTOR, "#show_new_area img[alt='小米su7']").click()
    wd.find_element(By.CSS_SELECTOR, "img[alt='小米su7']").click()

    time.sleep(3)


if __name__ == '__main__':
    wd = webdriver.WebDriver()
    wd.maximize_window()
    wd.get("http://192.168.88.102/index.php")
    search(wd)
    look(wd)
    wd.quit()
